package com.liang.isr;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class InputStreamReaderDemo {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(new FileInputStream("day_13\\b.txt"),"gbk");
        int len;
        char[] b = new char[100];
        while ((len = isr.read(b))!=-1) {
            System.out.println(new String(b,0,len));
        }
        isr.close();
        String str = "ksjfklasjdfkl\\r\\nafkjsdlkfjsakl";
        System.out.println(str);
    }
}
